package cn.iocoder.yudao.module.member.convert.scorerecord;

import cn.iocoder.yudao.framework.common.pojo.PageResult;
import cn.iocoder.yudao.module.member.controller.admin.scorerecord.vo.ScoreRecordCreateReqVO;
import cn.iocoder.yudao.module.member.controller.admin.scorerecord.vo.ScoreRecordExcelVO;
import cn.iocoder.yudao.module.member.controller.admin.scorerecord.vo.ScoreRecordRespVO;
import cn.iocoder.yudao.module.member.controller.admin.scorerecord.vo.ScoreRecordUpdateReqVO;
import cn.iocoder.yudao.module.member.dal.dataobject.scorerecord.ScoreRecordDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户积分兑换 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface ScoreRecordConvert {

    ScoreRecordConvert INSTANCE = Mappers.getMapper(ScoreRecordConvert.class);

    ScoreRecordDO convert(ScoreRecordCreateReqVO bean);

    ScoreRecordDO convert(ScoreRecordUpdateReqVO bean);

    ScoreRecordRespVO convert(ScoreRecordDO bean);

    List<ScoreRecordRespVO> convertList(List<ScoreRecordDO> list);

    PageResult<ScoreRecordRespVO> convertPage(PageResult<ScoreRecordDO> page);

    List<ScoreRecordExcelVO> convertList02(List<ScoreRecordDO> list);

}
